@echo off

cd %~dp0

set MVN=%M2_HOME%\bin\mvn

set SETTING=%M2_HOME%\conf\settings.xml
echo input settings.xml location[%SETTING%]
set /p SETTING=

if "%SETTING%" == "" set SETTING=%M2_HOME%\conf\settings.xml

call %MVN% -s %SETTING% versions:set
call %MVN% -s %SETTING% versions:commit

pause